<?php

session_start();

$dbhost='127.0.0.1';
$dbuser='root';
$dbpass='root';
$dbname='dc';
$dbpre='';

//支付状态
define('PAYSTATE_NO',  0);
define('PAYSTATE_YES', 1);
//支付类型
$paytype = array(1,2);


// 显示除了E_NOTICE(提示)和E_WARNING(警告)外的所有错误
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
// 关闭 set_magic_quotes_runtime
@set_magic_quotes_runtime(0);
// 调整时区
if (PHP_VERSION >= '5.1') date_default_timezone_set('PRC'); 

require_once '/lib/common.php';
require_once '/lib/mysql.class.php';
require_once '/lib/cart.class.php';

$db   = new Dbmysql($dbhost, $dbuser, $dbpass, $dbname, $dbpre);


$db->get_row("SELECT * FROM ".t('goods'));
$cart = new cart();
